﻿namespace Taobao.Model
{
    using Castle.ActiveRecord;
    using System;

    [ActiveRecord]
    public class Sender : ActiveRecordBase<Sender>
    {
        private string _address;
        private string _areaID;
        private string _companyCode;
        private string _mobile;
        private string _name;
        private string _phone;
        private short _senderID;
        private Taobao.Model.Shop _shop;
        private string _zip;

        [Property(ColumnType="String")]
        public virtual string Address
        {
            get
            {
                return this._address;
            }
            set
            {
                this._address = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string AreaID
        {
            get
            {
                return this._areaID;
            }
            set
            {
                this._areaID = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string CompanyCode
        {
            get
            {
                return this._companyCode;
            }
            set
            {
                this._companyCode = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Mobile
        {
            get
            {
                return this._mobile;
            }
            set
            {
                this._mobile = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Phone
        {
            get
            {
                return this._phone;
            }
            set
            {
                this._phone = value;
            }
        }

        [PrimaryKey(PrimaryKeyType.Native, ColumnType="Int16")]
        public virtual short SenderID
        {
            get
            {
                return this._senderID;
            }
            set
            {
                this._senderID = value;
            }
        }

        [OneToOne]
        public virtual Taobao.Model.Shop Shop
        {
            get
            {
                return this._shop;
            }
            set
            {
                this._shop = value;
            }
        }

        [Property(ColumnType="String")]
        public virtual string Zip
        {
            get
            {
                return this._zip;
            }
            set
            {
                this._zip = value;
            }
        }
    }
}

